// 获取 URL 中的查询参数
const urlParams = new URLSearchParams(window.location.search);
const username = urlParams.get('username');

console.log(username)
// 将用户名值插入到页面中
document.querySelector('.username').textContent = `${username}`;